# class person :
#     def __init__(self,name,age):
#         self.name=name
#         self.age=age
#     def say_hello(self):
#         print(f"Hello, my name is {self.name} and I am {self.age} years old.")
# person=person("锅饼",19)
# person.say_hello()




class Student:
    def __init__(self, name, age, address):
        self.name = name
        self.age = age
        self.address = address

# 录入学生数量
n = int(input("请输入学生数量: "))
students = []

# 循环录入学生信息
for i in range(n):
    print(f"\n请输入第 {i+1} 个学生信息:")
    name = input("姓名: ")
    age = int(input("年龄: "))
    address = input("地址: ")
    students.append(Student(name, age, address))

# 打印所有学生信息
print("\n学生信息汇总:")
for i, student in enumerate(students, 1):
    print(f"学生{i}: 姓名={student.name}, 年龄={student.age}, 地址={student.address}")
